<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>留言版后台</title>
	<link rel="stylesheet" type="text/css" href="./public/css/admin.css">
</head>
<body>
	<div id="box">
		<h1>留言版后台</h1>
		<div id= "comment">
			<form method="post"action="index.php?p=admin&c=comment&a=update">
				<ul class="reply">
					<li>用户: <input type="text" name="poster" class="input" value="<?php echo $data['poster'];?>"></li>
					<li>邮箱: <input type="text" name="mail" class="input" value="<?php echo $data['mail'];?>"></li>
					<li class="top">留言:  <textarea name="comment"><?php echo $data['comment'];?></textarea></li>
					<li class="top">回复:  <textarea name="reply"><?php echo $data['reply'];?></textarea></li>
					<li class="center">
						<input type="reset" value="重置" class="button">
						<input type="submit" value="保存" class="button">
					</li>
				</ul>
				<!-- 传递一个隐藏页，id为当前id号 -->
				<input type="hidden" name="id" value="<?php echo $_GET['id'];?>">
			</form>
		</div>
	</div>
</body>
</html>